#
# Be sure to run `pod lib lint StockCommonUI.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
  s.name             = 'StockChartZZ'
  s.version          = '0.1.0'
  s.summary          = 'A short description of Iosstockchart.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://www.baidu.com'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'zhu.jialai@gmail.com' => 'zhujialai@icloud.com' }
  s.source           = { :git => 'git@gitee.com:wellcomezhu/iosstockchart.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '11.0'
  # s.osx.deployment_target = '10.10'
  s.ios.pod_target_xcconfig = { 'PRODUCT_BUNDLE_IDENTIFIER' => 'com.ll.StockChartZZ' }
  s.osx.pod_target_xcconfig = { 'PRODUCT_BUNDLE_IDENTIFIER' => 'com.ll.zenstockchart' }

  s.source_files = 'stockchart.h'

  # s.subspec 'zencore' do |ss|
  #   ss.source_files = 'zencore/*'
  #   ss.public_header_files = "zencore/{zencore,EventFilter,StockIndicatorZen,zendata,mergeZenEvent,zenEventMgr,zenEventMark}.h"
  #   ss.dependency 'StockExprZen' 
  #   ss.dependency 'StockChartZZ/chartcommon' 
  #   ss.dependency 'StockChartZZ/StockCommonUI' 
  # end
  s.subspec 'chartcommon' do |ss|
    ss.source_files = 'chartcommon/*.{m,h,mm}', 'chartcommon/Theme/*.{mm,m,h}','networkbase/{httpRequest,gdb18630Decode}.*'
    ss.public_header_files = "chartcommon/*.h",'networkbase/httpRequest.h','chartcommon/Theme/*.h'
    ss.dependency  'AFNetworking', '~> 3.2.1'
    ss.dependency  'ChameleonFramework','~> 2.1.0'
    ss.dependency  'MJExtension','~> 3.2.2'
  end
  s.subspec 'StockCommonUI' do |ss|
    ss.source_files = 'StockCommonUI/*.{m,mm,h}','zencore/EventFilter.*','zencore/zenEventMark.h','zenindicator/indicator/*.h'
    ss.public_header_files = "StockCommonUI/*.h"
    ss.dependency  'StockChartZZ/chartcommon' 
    ss.dependency  'FTPopOverMenu','~> 2.1.1'
    ss.dependency  'MJExtension','~> 3.2.2'
    ss.dependency  'Masonry'
    ss.dependency  'Toast', '~> 4.0.0'
    ss.dependency  'ChameleonFramework','~> 2.1.0'
  end
  # s.subspec 'zenindicator' do |ss|
  #   ss.source_files = 'zenindicator/*.{m,mm,h}','zenindicator/indicator/*'
  #   ss.public_header_files = 'zenindicator/indicator/indicatorMgr.h'
  #   ss.dependency 'StockChartZZ/chartcommon' 
  #   ss.dependency 'StockChartZZ/StockCommonUI' 
  #   ss.dependency 'StockChartZZ/zencore' 
  #   ss.dependency 'StockExpr'
  #   ss.dependency 'CCTALib','~> 0.7.1'
  #   ss.dependency  'MJExtension','~> 3.2.2'
  # end
  
  # s.subspec 'zenstockchart' do |ss|
  #   ss.source_files = 'zenstockchart/*.{m,mm,h}', 'zenstockchart/StockView/*','zenstockchart/StockView/**/*','zenstockchart/IndicatorConfig/*'
  #   ss.public_header_files ='zenstockchart/{stockChartView,StockDataSource,stockChartViewProtocol,PushMgr}.h'
  #   ss.dependency 'StockChartZZ/chartcommon' 
  #   ss.dependency 'StockChartZZ/StockCommonUI' 
  #   ss.dependency 'StockChartZZ/zenindicator' 
  #   ss.dependency 'Masonry'
  #   ss.dependency 'InAppSettingsKit','~> 3.1.8'
  #   ss.dependency 'MGSwipeTableCell','~> 1.6.11'
  #   ss.dependency 'Toast', '~> 4.0.0'
  # end
end
